{% extends 'iframe/basePlus.html.twig' %}
{% block cardHeader %}
    查看<a href="/Admin/Model/index" class="layui-btn layui-btn-sm" style="float:right;margin-top:6px;">列表</a>
{% endblock %}
{% block cardBody %}
    <style>
        .layui-badge {
            margin-right: 1px;
        }
    </style>
    <table class="layui-table">
        <colgroup>
            <col width="200">
            <col width="2000">
        </colgroup>
        <tr>
            <td>ID</td>
            <td>{{ rs.id }}</td>
        </tr>
        <tr>
            <td>数据库配置键</td>
            <td>{{ rs.dry_database_config_key }}</td>
        </tr>
        <tr>
            <td>数据库</td>
            <td>{{ rs.dry_database }}</td>
        </tr>
        <tr>
            <td>名称</td>
            <td>{{ rs.dry_name }}</td>
        </tr>
        <tr>
            <td>表名称</td>
            <td>{{ rs.dry_table }}</td>
        </tr>
        <tr>
            <td>别名</td>
            <td>{{ rs.dry_alias }}</td>
        </tr>
        <tr>
            <td>控制器名称</td>
            <td>{{ rs.dry_controller_name }}</td>
        </tr>
        <tr>
            <td>备注</td>
            <td>{{ rs.dry_note }}</td>
        </tr>
        <tr>
            <td>排序</td>
            <td>{{ rs.dry_sort }}</td>
        </tr>
        <tr>
            <td>字段</td>
            <td><div class="dryMergeRequest" role="tag" field="dry_field" url="/Api/Field/getList" iframeUrl="" full="1">{{ rs.dry_field }}</div></td>
        </tr>
        <tr>
            <td>附加字段</td>
            <td><div class="dryMergeRequest" role="tag" field="dry_additional_column" url="/Api/Choice/getListByKey?key=additionalColumn" iframeUrl="" full="1">{{ rs.dry_additional_column }}</div></td>
        </tr>
        <tr>
            <td>分页数</td>
            <td><div class="dryMergeRequest" role="tag" field="dry_page_size" url="/Api/Choice/getListByKey?key=pageSize" iframeUrl="" full="1">{{ rs.dry_page_size }}</div></td>
        </tr>
        <tr>
            <td>排序sql</td>
            <td>{{ rs.dry_sort_sql }}</td>
        </tr>
        <tr>
            <td>添加时间</td>
            <td>{{ rs.dry_add_time }}</td>
        </tr>
    </table>
    <script>
        layui.use(['dry'], function(dry){
            dry.mergeRequest();
        });
    </script>
{% endblock %}